<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<title>订单详情</title>
<link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet" type="text/css"/>
<link href="${pageContext.request.contextPath}/css/cart.css" rel="stylesheet" type="text/css"/>


<script type="text/javascript">
	function chooseShip(){
		window.location.href = "${pageContext.request.contextPath}/showAddress.action";
	}
	function fanhui(){
		window.location.href = "${pageContext.request.contextPath}/myOrder.action?page=1";
	}
   </script>
</head>
<body>

<div class="container header">
	<div class="span5">
		<div class="logo">
			<a href="${pageContext.request.contextPath}/index.action"> <img
					src="${pageContext.request.contextPath}/image/r___________renleipic_01/logo.gif"
					alt=""></a>
		</div>
	</div>
	<div class="span9">

	</div>
	<%@ include file="menu.jsp"%>
	<!-- 菜单栏 -->
</div>	

<div class="container cart">
	<div class="span24">
	<h1 align="center" style="margin-top:0px;">订单详情</h1>
	<table>
		<tboby>
			<th colspan="5">订单编号：${orders.oid}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;订单生成时间：${strTime}</th>
			<tr>
				<td>收货人姓名：${orders.accepter}</td>
			</tr>
			<tr>
				<td>收货人地址:：${orders.receiveinfo}</td>
			</tr>
			<tr>
				<td>收货人电话：${orders.phonum}</td>
			</tr>
			
		</tboby>
	</table>
	<table>
			
			<tbody>
					<tr>
						<th>图片</th>
						<th>商品</th>
						<th>价格</th>
						<th>数量</th>
						<th>小计</th>
					</tr>
					<c:forEach items="${orders.oiList}" var="orderItem">
						<tr>
							<td width="60">
								<input type="hidden" name="id" value="22"/>
								<img  width="40" height="45" src="${pageContext.request.contextPath }/${orderItem.product.image}">
							</td>
							<td>
								<a target="_blank"> ${orderItem.product.pname}</a>
							</td>
							<td>
								${orderItem.product.shopPrice}
							</td>
							<td class="quantity" width="60">
							${orderItem. count}
							</td>
							<td width="140">
								<span class="subtotal">${orderItem.subtotal}</span>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			</div>
			<div align="right">
	<input type="button" value="返回" onclick="fanhui()" style="color:#fff;background-color: #1bb4d7;border-color: #2e6da4;width:110px;height:40px;"/>
	</div>
	</div>
	

<div class="container footer">
	<div class="span24">
		
	</div>
	<div class="span24">
		<ul class="bottomNav">
					<li><hr></hr></li>
		</ul>
	</div>
	<div class="span24">
		<div class="copyright">Copyright ©  网上商城 版权所有</div>
	</div>
</div>
</body>
</html>